<template>
  <li>
    <img :src="item.pic" alt="" />
    <h2>{{ item.title }}</h2>
    <button @click.stop="remove">删除</button>
  </li>
</template>

<script>
export default {
  props: ["item", "index"],
  data() {
    return {};
  },
  mounted() {},
  methods: {
    remove() {
      this.$emit("remove", this.index);
    },
  },
  components: {},
};
</script>

<style lang="scss"></style>
